package com.aks.server.controller.auth;

import com.aks.server.controller.BaseController;
import com.aks.server.domain.response.ResponseResult;
import com.aks.server.domain.request.param.AuthLoginParam;
import com.aks.server.service.AuthService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/auth")
public class AuthController extends BaseController {
    @Resource
    private AuthService authService;

    @RequestMapping("/login")
    public @ResponseBody ResponseResult<?> auth(@RequestBody AuthLoginParam param) {
        return authService.login(param);
    }


}
